package com.example.s11jpa.repository;

/**
 * @author: lazyfier
 * @create 2022-04-07 23:45
 */


import com.example.s11jpa.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User,Long> {
    User findByUserName(String userName);
    User findByUserNameOrEmail(String username,String email);
}